<template>
    <div class="comment_card">
        <div class="left">
            <img :src="commentVal.user.avatarUrl" alt="" />
        </div>
        <div class="right">
            <div class="top">
                <span class="name" style="color: #90a3cc"
                    >{{ commentVal.user.nickname }}：</span
                >
                <span class="content">{{ commentVal.content }}</span>
            </div>
            <div class="bottom">
                <span class="time">{{ commentVal.timeStr }}</span>
                <span class="dianzan">
                    <i class="iconfont icon-good"></i>
                    {{ commentVal.likedCount }}
                </span>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        commentVal: {}
    }
};
</script>

<style lang="less" scoped>
.comment_card {
    display: flex;
    font-size: 16px;
    padding: 20px;
    border-bottom: 1px solid rgb(231, 231, 231);
    .left {
        img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
        }
    }
    .right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
        margin-left: 20px;
        .top{
            padding-bottom: 20px;
            line-height: 25px;
        }
        .bottom {
            color: rgb(187, 181, 181);
            display: flex;
            justify-content: space-between;
            font-size: 14px;
        }
    }
}
</style>
